@import "../../asset/style/common";

.mod-select {
  h6 {
    font-size: 1.2rem;
  }
  .input-wrapper-select {
    box-sizing: border-box;
    padding: 5px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f2f2f2;
    .inner {
      position: relative;
      input {
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-left: 30px;
        border-color: #f1f1f1;
      }
      .icon-sousuo{
        position: absolute;
        left: 8px;
        top: 8px;
        color: #808080;
      }
    }
  }
  ul {
    height: 200px;
    overflow-y: auto;
    background-color: #fff;
    li {
      position:relative;
      box-sizing: border-box;
      cursor: pointer;
      padding: 10px;
      border-bottom: 1px solid #f1f1f1;
      &.active {
        background-color: #59a5eb;
        color: #fff;
        &:hover{
          background-color: #59a5eb;
          color: #fff;
        }
      }
      &:hover {
        background-color: #f1f1f1;
        .operation{
          display:block;
        }
      }
      .operation{
        display:none;
        position:absolute;
        top:0;
        right:0;
        width:80px * $scale;
        height:100%;
        a{
          position:absolute;
          display: inline-block;
          top:50%;
          margin-top:-15px * $scale;
          width: 30px * $scale;
          height: 30px * $scale;
          border-radius: 100%;
          text-align: center;
          line-height: 30px * $scale;
          em{
            font-size: 18px * $scale;
            color: #fff;
          }
        }
        .edit{
          left:0;
          background-color:#5a94dd;
          em{
            position:relative;
            top:-1px;
          }
        }
        .delete{
          left:40px * $scale;
          background-color:#eb303e;
        }
      }
      .edit-item{
        position:absolute;
        width:100%;
        height:100%;
        left:0;
        top:0;
        background-color:#fff;
        z-index:10;
        input{
          display:inline-block;
          width:65%;
          height:35px;
          box-sizing:border-box;
          border-right:none;
          border-top:none;
          border-bottom:none;
        }
        button{
          display:inline-block!important;
          width:35%;
          min-width:35%;
          height:35px;
          padding:10px * $scale 10px * $scale;
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
          border-color:#59a5eb;
          &:hover{
            border-color:#59a5eb;
          }
        }
      }
    }
  }
}